package web

import (
	"github.com/kataras/iris/v12"
	"github.com/kataras/iris/v12/hero"
	"iris_blog/controller/web"
)

func Nav(party iris.Party) {
	nav := party.Party("/nav")
	serve := web.Nav{}
	nav.Get("/", hero.Handler(serve.GetAll))
	nav.Get("/{id}", hero.Handler(serve.GetObjectId))
}